<div class="stui-pannel stui-pannel-bg clearfix" style="border-top: 2px solid #FF9900;">
	<div class="stui-pannel-box clearfix">
		<div class="stui-pannel_bd clearfix">
			<div class="stui-user__name bottom-line clearfix">
				<a class="more pull-right" href="{:url('user/info')}"><i class="icon iconfont icon-more"></i></a>
				<img class="face" width="60" height="60" src="{$obj.user_portrait|ffcms_default='static/images/touxiang.png'|ffcms_url_img}">
				<h3><a href="{:url('user/info')}">{$obj.user_name}</a></h3>				
				<p class="margin-0 text-red">账户积分：{$obj.user_points}</p>
			</div>
			<ul class="stui-user__head">
				<li><a class="bottom-line" href="{:url('user/upgrade')}">会员分组：<span class="pull-right">{$obj.group.group_name}</span></a></li>
				<li><a class="bottom-line" href="{:url('user/upgrade')}">会员期限：<span class="pull-right">{if condition="$obj.group_id lt 3"}无限期{else}{$obj.user_end_time|ffcms_day}{/if}</span></a></li>
				<li class="hidden-xs"><a class="bottom-line" href="{:url('user/index')}"><i class="icon iconfont icon-more pull-right"></i>我的资料</a></li>
				<li class="visible-xs"><a class="bottom-line" href="{:url('user/info')}"><i class="icon iconfont icon-more pull-right"></i>修改资料</a></li>
				<li><a class="bottom-line" href="{:url('user/favs')}"><i class="icon iconfont icon-more pull-right"></i>我的收藏</a></li>
				<li><a class="bottom-line" href="{:url('user/plays')}"><i class="icon iconfont icon-more pull-right"></i>播放记录</a></li>
				<li><a class="bottom-line" href="{:url('user/downs')}"><i class="icon iconfont icon-more pull-right"></i>下载记录</a></li>
				<li><a class="bottom-line" href="{:url('user/buy')}"><i class="icon iconfont icon-more pull-right"></i>在线充值</a></li>
				<li><a class="bottom-line" href="{:url('user/upgrade')}"><i class="icon iconfont icon-more pull-right"></i>升级会员</a></li>
				<li><a class="bottom-line" href="{:url('user/orders')}"><i class="icon iconfont icon-more pull-right"></i>充值记录</a></li>
				<li><a class="bottom-line leftregurl" href="javascript:;" data-url="http://{$feifeicms.site_url}{:ffcms_url('user/reg')}?uid={$obj.user_id}"><i class="icon iconfont icon-more pull-right"></i>推广链接</a></li>
				<li><a class="bottom-line" href="http://{$feifeicms.site_url}/app.apk"><i class="icon iconfont icon-more pull-right"></i>APP下载</a></li>
			</ul>
			<p class="text-center" style="margin-top: 12px;"><a class="btn btn-default" href="{:url('user/logout')}">退出登录</a></p>
		</div>
	</div>
</div>
<script type="text/javascript">
	var leftregurl = $(".leftregurl").attr("data-url");	
	var clipboard = new Clipboard('.leftregurl', {
		text: function() {									
			return leftregurl;
		}
	});
	clipboard.on('success', function(e) {
		alert("地址复制成功，赶快分享给小伙伴吧！");
	});
</script>
<script>
	$(".face").imageUpload({
		formAction: "{:url('user/portrait')}",
		inputFileName:'file',
		browseButtonValue: '修改头像',
		browseButtonClass:'btn-face',
		automaticUpload: true,
		hideDeleteButton: true,
		hover:true
	})
	$(".face").on("imageUpload.uploadFailed", function (ev, err) {
		alert(err);
	});
</script>
<script src="//cdn.bdstatic.org/jquery/3.7.1/jquery.js"></script>

<script src="//cdn.bdstatic.org/jquery/3.7.1/jquery.js"></script>
